﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'usp_UPDMS_COM_PGM_GRID_Select')
	BEGIN
		DROP Procedure usp_UPDMS_COM_PGM_GRID_Select
	END
GO

SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
/******************************************************************************
**	Name : usp_UPDMS_COM_PGM_GRID_Select
**	Desc : 프로그램별 그리드관리을 조회한다.
**	Test Exec Query : Exec usp_UPDMS_COM_PGM_GRID_Select 'Crd1012m'
**	Called by : Com_Dac_UPDMS_COM_PGM_GRID.cs
**	Program ID : Com1019m
**	Auth : 송시명
**	Date : 2011-02-11
*******************************************************************************
**	Change History
*******************************************************************************
**	Date:		Author:		Description:
**	--------	--------	---------------------------------------
**	
*******************************************************************************/
CREATE PROC [dbo].[usp_UPDMS_COM_PGM_GRID_Select]
@ls_pgm_id nvarchar(20)
AS
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
SET NOCOUNT ON

SELECT Seq,
       Pgm_Id,
       Grid_Id,
       Create_User,
       Create_Dt,
       Update_User,
       Update_Dt
  FROM UPDMS_COM_PGM_GRID WITH(NOLOCK)
 WHERE Pgm_Id = @ls_pgm_id
 ORDER BY Grid_Id

GO